// =====================================================
// UIVideo class
// =====================================================
// Inheritance
UIVideo.InheritsFrom(UISimpleControl);

function UIVideo()
{
	// Methods
	this.Construct = Construct;

	// Method definitions
	function Construct(id, pos, params)
	{
		// set HTML tag used for this control
		this.SetTag("video");

		// call parent constructor
		parent = Object.getPrototypeOf(this);
		parent.Construct(id, pos);

		// redefine/add more properties
        this.SetProperty("Size",        	new Size("320px", "240px"));
		this.SetProperty("BackColor",    	"Transparent");
		
		this.AddProperty("VideoSource",     new VideoSource("sample.mp4", "video/mp4"),     Binder.VideoSourceBinder);
		this.AddProperty("Controls",	    "controls",										Binder.DefaultHtmlBinder("controls"));
	}
}

